# -*- coding: utf-8 -*-
#对于浮点数‘0.333’保留小数（.）后三位
print('{0:.3f}'.format(1.0 / 3))
# 使用（^）定义 '___hello___'字符串长度为11,补"^"前面的符号
print('{0:_^11}'.format('hello'))
#基于关键词输出
print('{name} wrote {book}'.format(name='Swaroop', book='A Byte of Python'))
print('a', end=' ')
print('b', end=' ')
print('c')
print("This is the first line. \
    This is the second line.")
